<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of category_model
 *
 * @author Administrator
 */
class Category_model extends CI_Model {
    
    //查询信息
    function get_category($str = FALSE) {
        if ($str === FALSE) {
            $query = $this->db->get('category');
            return $query->result_array();
        }

        $query = $this->load->get_where('category', array($str));
        return $query->result_array();
    }

}

?>
